package com.jtpay.unionpay.product.model;

import org.greenrobot.greendao.annotation.*;

/**
 * Description:
 * File: UnionPayQrModel.java
 * Author: Administrator
 * Create: 2018/07/11 11:17
 */
@Entity(nameInDb = "unionPay_info", indexes = {
        @Index(value = "id DESC", unique = true)
})
public class ProductBean {

    @Id(autoincrement = true)
    private Long id;
    @Property(nameInDb = "codeUrl")
    private String codeUrl;
    @Property(nameInDb = "money")
    private String money;
    @Property(nameInDb = "serialNumber")
    private String serialNumber;
    @Property(nameInDb = "remarks")
    private String remarks;
    /**
     * 0 def
     * 1 produced
     * 2 product finished
     * 3 uploading
     * 4 upload finished
     */
    @Property(nameInDb = "treated")
    private String treated;

    @Transient//表示不存储在数据库中
    private String UnionPayOrderId;//union pay order id

    public ProductBean() {
    }

    public ProductBean(String money, String remarks, String treated) {
        this.money = money;
        this.remarks = remarks;
        this.treated = treated;
    }

    @Generated(hash = 1142853193)
    public ProductBean(Long id, String codeUrl, String money, String serialNumber,
                       String remarks, String treated) {
        this.id = id;
        this.codeUrl = codeUrl;
        this.money = money;
        this.serialNumber = serialNumber;
        this.remarks = remarks;
        this.treated = treated;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCodeUrl() {
        return codeUrl;
    }

    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getTreated() {
        return treated;
    }

    public void setTreated(String treated) {
        this.treated = treated;
    }

    public String getUnionPayOrderId() {
        return UnionPayOrderId;
    }

    public void setUnionPayOrderId(String unionPayOrderId) {
        UnionPayOrderId = unionPayOrderId;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", codeUrl='" + codeUrl + '\'' +
                ", money='" + money + '\'' +
                ", serialNumber='" + serialNumber + '\'' +
                ", remarks='" + remarks + '\'' +
                ", treated='" + treated + '\'' +
                ", OrderId='" + UnionPayOrderId + '\'' +
                '}';
    }
}
